<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-order_no" class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" class="form-control" type="text" value="{$row.order_no}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_name" class="control-label col-xs-12 col-sm-2">{:__('Order_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_name" class="form-control" type="text" value="{$row.order_name}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-trans_id" class="control-label col-xs-12 col-sm-2">{:__('Trans_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trans_id" class="form-control" type="text" value="{$row.trans_id}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-source="user/index" data-field="nickname" class="form-control selectpage" type="text" value="{$row.user_id}" disabled>
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-coupon_id" class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_id" data-source="coupon/index" class="form-control selectpage" type="text" value="{$row.coupon_id}" disabled>
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-contact" class="control-label col-xs-12 col-sm-2">{:__('Contact')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-contact" class="form-control" name="row[contact]" type="text" disabled>{$row.contact}</textarea>
        </div>
    </div>
   <!-- <div class="form-group">
        <label for="c-orig_price" class="control-label col-xs-12 col-sm-2">{:__('Total_price')} <br>({:__('Orig_price')} + {:__('Freight_price')}):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orig_price" class="form-control" type="text"
                   value="{$row.orig_price} + {$row.freight_price} = {$row.orig_price + $row.freight_price}" disabled>
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-coupon_price" class="control-label col-xs-12 col-sm-2">{:__('Price_details')} <br>
            ({:__('Orig_price')} + {:__('Freight_price')})<br>
            -{:__('Coupon_price')}<br>
            -{:__('Score_price')}<br>
            ={:__('Payment_price')}</label>
        <div class="col-xs-12 col-sm-8">
            <p id="c-coupon_price" class="form-control" style="height: 100px;" disabled>
                <br>
{$row.orig_price} + {$row.freight_price} = {$row.orig_price+$row.freight_price}<br>
      - {$row.score_price} <br>
      - {$row.coupon_price} <br>
      = {$row.payment_price}
                </p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{$row.create_time|datetime}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-payment_time" class="control-label col-xs-12 col-sm-2">{:__('Payment_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-payment_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{$row.payment_time|datetime_not_empty}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_time" class="control-label col-xs-12 col-sm-2">{:__('Shipping_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{$row.shipping_time|datetime_not_empty}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-check_time" class="control-label col-xs-12 col-sm-2">{:__('Check_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{$row.check_time|datetime_not_empty}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-refund_time" class="control-label col-xs-12 col-sm-2">{:__('Refund_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{$row.refund_time|datetime_not_empty}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-buy_remarks" class="control-label col-xs-12 col-sm-2">{:__('Buy_remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-buy_remarks" class="form-control" disabled>{$row.buy_remarks}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-refund_remarks" class="control-label col-xs-12 col-sm-2">{:__('Refund_remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-refund_remarks" class="form-control" disabled>{$row.refund_remarks}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_no" class="control-label col-xs-12 col-sm-2">{:__('Shipping_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_no" class="form-control" type="text" name="row[shipping_no]" value="{$row.shipping_no}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-admin_remarks" class="control-label col-xs-12 col-sm-2">{:__('Admin_remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-admin_remarks" class="form-control" name="row[admin_remarks]">{$row.admin_remarks}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-status" data-rule="required" class="form-control selectpicker" name="row[status]">
                {foreach name="statusList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.status"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
